package cc.linker.steplink.crm.merchant.dao.integral;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

@Component
public interface IntegralGroupDao {

    List<Map> getList(@Param("orgId") String orgId);

    void addSort(Map<String, Object> param);

    void insert(Map<String, Object> param);

    void update(Map<String, Object> param);

    void delete(Map<String, Object> param);

    void updateStatus(Map<String, Object> param);

    Integer getNameCount(Map<String, Object> param);

    Map getGroupBySort(Map<String, Object> param);

    void updateSort(@Param("id") Long id,@Param("sort") Integer sort);

    List<Map> getGoodsList(@Param("groupId") Long groupId);

    void addIntegralGoods(Map<String, Object> param);

    void deleteIntegralGoods(Map<String, Object> param);

    Map getGoodsBySort(Map<String, Object> param);

    void updateGoodsSort(@Param("integralGoodsId") Long integralGoodsId,@Param("groupId") Long groupId,@Param("sort") Integer sort);

}
